package com.idp.common.utils;

import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;

public class RedissonUtil {

	private static final String LOCK_FOLDER = "locks:";

	public static RLock getLock(String lockKey) {

		RedissonClient redisson = ContextUtil.getBean(RedissonClient.class);

		return redisson.getLock(LOCK_FOLDER + lockKey);
	}
}
